package Server.ServerCore.Model.vo;


import Server.ServerCore.Service.hardCode.CardType;
import Server.ServerCore.Service.hardCode.Cardcolour;


/**
 * @author :石头哥哥<br/>
 *         Project:21Server
 *         Date: 13-4-1
 *         Time: 下午10:36
 *         纸牌操作VO
 *
 *          CardType:2.3.4.5.6.7.8.9.10.11（J）.12(Q).13(K).14(A)
 *          Cardcolour:扑克牌花色：1，2，3，4（红桃，方片，黑桃，梅花）
 */
public class CardVO extends VO{

    private CardType cardType= CardType.getSecureCard();

    private byte cardcolour= Cardcolour.getCardColour().getID();//纸牌花色

    private int ponts=0;//点数

    public CardVO(){}

    /**
     * 获取点数
     * @return
     */
    public int getPonts() {
        return ponts;
    }

    public void setPonts(int ponts) {
        this.ponts = ponts;
    }

    public CardType getCardType() {
        return cardType;
    }

    public void setCardType(CardType cardType) {
        this.cardType = cardType;
    }

    public byte getCardcolour() {
        return cardcolour;
    }

    public void setCardcolour(byte cardcolour) {
        this.cardcolour = cardcolour;
    }

    /**
     * CardType 是否是黑杰克
     * @param cardVOs
     * @return
     */
    public static boolean isBlackJack(CardVO[] cardVOs){
        boolean i=false;
//        if (cardVOs[0].getCardType()+cardTypes[1].getID()==21){//2张组合且为21点 blackjack
//            i=true;
//            return i;
//        }
        return i;
    }


    public static int getPoints(CardType[] cardTypes){


        return 0;
    }



    public static void main(String[]args){
        CardVO cardVO=new CardVO();
        System.out.println(cardVO.getCardcolour());
        System.out.println(cardVO.cardType.getID());

    }
}
